package com.zb.zbtpd.util;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.io.IOException;

public class JsonUtil {

    private static ObjectMapper objectMapper = new ObjectMapper();

    public static JsonNode jsonNode(String json){
        JsonNode node = null;
        try {
            node = objectMapper.readTree(json);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return node;
    }
}
